package su.mvc.solo.util;

import ognl.OgnlRuntime;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.http.HttpSessionAttributeListener;
import javax.servlet.http.HttpSessionBindingEvent;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;

/**
 * Created by Rustam Ismailov
 * Date: Nov 15, 2009 : 12:59:44 AM
 */
public class GaeContextListener implements ServletContextListener, HttpSessionListener, HttpSessionAttributeListener {
    public void contextInitialized(ServletContextEvent servletContextEvent) {
        OgnlRuntime.setSecurityManager(null);
    }

    public void contextDestroyed(ServletContextEvent servletContextEvent) {
        //
    }

    public void sessionCreated(HttpSessionEvent httpSessionEvent) {
        //
    }

    public void sessionDestroyed(HttpSessionEvent httpSessionEvent) {
        //
    }

    public void attributeAdded(HttpSessionBindingEvent httpSessionBindingEvent) {
        //
    }

    public void attributeRemoved(HttpSessionBindingEvent httpSessionBindingEvent) {
        //
    }

    public void attributeReplaced(HttpSessionBindingEvent httpSessionBindingEvent) {
        //
    }
}
